/*const ioHook = require('iohook');
const {app} = require('electron');

ioHook.start(false);
const eventHandler =function(type){
    switch (type) {
        case 'mouseclick':
            console.log('mouse is click!')
            break;
        case 'mousedown':
            console.log('mouse is press!')
            break;
        case 'mouseup':
            console.log('mouse is release!')
            break;
        case 'mousedrag':
            console.log('mouse is moving!')
            break;
        case 'mousewheel':
            console.log('keybord is rolling!')
            break;
        case 'keydown':
            console.log('keybord is press!')
            break;
        default:
            console.log('move mouse or keyboard try it!')
            break;
    }
}
ioHook.start(false);
// ioHook.on('mouseclick', ()=>{eventHandler('mouseclick')});
// ioHook.on('mousedown', ()=>{eventHandler('mousedown')});
// ioHook.on('mouseup', ()=>{eventHandler('mouseup')});
// ioHook.on('mousedrag', ()=>{eventHandler('mousedrag')});
// ioHook.on('mousewheel', ()=>{eventHandler('mousewheel')});
// ioHook.on('mouse', ()=>{eventHandler('mousedrag')});
ioHook.on('keyup', ()=>{eventHandler('keyup')});
ioHook.on('keydown', ()=>{eventHandler('keydown')});



app.on('before-quit', () => {
    // 卸载iohook监听
    ioHook.unload();
    ioHook.stop();
});*/
